#include "CFootballPlayer.h"


CFootballPlayer::CFootballPlayer(void)
	: m_Position(0, 0)
{
}

CFootballPlayer::CFootballPlayer(int _PosX, int _PosY)
	: m_Position(_PosX, _PosY)
{
}

CFootballPlayer::~CFootballPlayer(void)
{
}

CPoint2D CFootballPlayer::GetPosition(void)
{
	return m_Position;
}

bool CFootballPlayer::Pass(void)
{
	// try to pass
	if(GetRandom(1, 100) <= s_CONST_CHANCE_TO_PASS) {
		return true;
	// try to shot
	} else {
		return false;
	}
}